<?php
/**
 * 支付接口路由
 */
Route::group(['namespace' => 'Pay', 'prefix' => 'pay'], function () {
    //支付宝
    Route::match(['post','get'],'/alipay/notify', [ 'uses' => 'PayController@alipayNotify' ,'as' => 'pay.alipay.notify']); //支付宝回调
    Route::post('/alipay/refund', [ 'uses' => 'PayController@refundAlipayOrder','as' => 'pay.alipay.refund' ]); //支付宝原路退款
    Route::match(['post','get'],'/alipay/success', [ 'uses' => 'PayController@success', 'as' => 'pay.alipay.success' ]);//支付成功页面
});